package cn.myschool.model;

/**
 * @author oldliu
 * @since 1.0
 */
public class HelloSpring {
    private String from;
    private String to;
    private String msg;
    public HelloSpring(){
        System.out.println("hello 构造方法");
    }
    public void start(){
        System.out.println(this.from+"开始给大家问好了");
    }
    public void close(){
        System.out.println("清理一下");
        this.msg=null;
    }
    public void sayHi(){
        System.out.println(from+"对"+to+"说:"+msg);
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
